<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>YAML - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of YAML - MetaCPAN" href="https://metacpan.org/dist/YAML/releases.rss" />
        <link rel="canonical" href="YAML.html" />
        <meta name="description" content="YAML Ain&#39;t Markup Language™" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/YAML" />
<meta name="twitter:title"       content="YAML" />
<meta name="twitter:description" content="" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="YAML.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of YAML was released.">
      <span class="relatize">27 Dec 2023 15:11:23 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/YAML">YAML</a>
  </li>
  <li>
    Module version: 1.31
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/YAML/source/lib/YAML.pm">Source</a>
    (<a href="https://metacpan.org/dist/YAML/source/lib/YAML.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g p" href="https://metacpan.org/dist/YAML/source/lib/YAML.pod">Pod Source</a>
    (<a href="https://metacpan.org/dist/YAML/source/lib/YAML.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/YAML/source/lib">Browse</a>
    (<a href="https://metacpan.org/dist/YAML/source/lib?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/YAML/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/ingydotnet/yaml-pm">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/YAML/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/ingydotnet/yaml-pm">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/ingydotnet/yaml-pm/issues">Issues</a>
      (36)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=YAML+1.31" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML.html?oncpan=1&amp;distmat=1&amp;version=1.31&amp;grade=2" style="color: #090">1525</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML.html?oncpan=1&amp;distmat=1&amp;version=1.31&amp;grade=3" style="color: #900">5</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/Y/YAML.html?oncpan=1&amp;distmat=1&amp;version=1.31&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/INGY/YAML-1.31">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on YAML who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 3
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/YAML/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/I/IN/INGY/YAML-1.31.tar.gz">
      Download (<span itemprop="fileSize">86.04KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FINGY%2FYAML-1.31%2Flib%2FYAML.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/YAML/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/YAML/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:YAML">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="YAML">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/YAML.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="INGY/YAML-1.31"
>1.31
  (INGY on 2023-12-27)</option>
<option
  
  value="TINITA/YAML-1.30"
>1.30
  (TINITA on 2020-01-27)</option>
<option
  
  value="TINITA/YAML-1.29"
>1.29
  (TINITA on 2019-05-11)</option>
<option
  
  value="TINITA/YAML-1.28"
>1.28
  (TINITA on 2019-04-28)</option>
<option
  
  value="INGY/YAML-1.23_002"
>1.23_002 DEV
  (INGY on 2017-05-14)</option>
<option
  
  value="INGY/YAML-1.23_001"
>1.23_001 DEV
  (INGY on 2017-05-12)</option>
<option
  
  value="INGY/YAML-1.23"
>1.23
  (INGY on 2017-02-19)</option>
<option
  
  value="INGY/YAML-1.22"
>1.22
  (INGY on 2017-02-14)</option>
<option
  
  value="INGY/YAML-1.21"
>1.21
  (INGY on 2016-12-23)</option>
<option
  
  value="INGY/YAML-1.20_001"
>1.20_001 DEV
  (INGY on 2016-12-02)</option>
<option
  
  value="INGY/YAML-1.20"
>1.20
  (INGY on 2016-12-02)</option>
<option
  
  value="MSTROUT/YAML-0.84"
>0.84
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.83"
>0.83
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.82"
>0.82
  (MSTROUT on 2012-07-12)</option>
<option
  
  value="ADAMK/YAML-0.72"
>0.72
  (ADAMK on 2010-09-01)</option>
<option
  
  value="ADAMK/YAML-0.71"
>0.71
  (ADAMK on 2010-01-03)</option>
<option
  
  value="ADAMK/YAML-0.70"
>0.70
  (ADAMK on 2009-08-10)</option>
<optgroup label="BackPAN">'
<option
  
  value="TINITA/YAML-1.28_001"
>1.28_001 DEV
  (TINITA on 2019-05-05)</option>
<option
  
  value="TINITA/YAML-1.27_001"
>1.27_001 DEV
  (TINITA on 2019-04-27)</option>
<option
  
  value="TINITA/YAML-1.27"
>1.27
  (TINITA on 2018-11-03)</option>
<option
  
  value="TINITA/YAML-1.26_001"
>1.26_001 DEV
  (TINITA on 2018-10-18)</option>
<option
  
  value="TINITA/YAML-1.26"
>1.26
  (TINITA on 2018-05-18)</option>
<option
  
  value="TINITA/YAML-1.25_002"
>1.25_002 DEV
  (TINITA on 2018-05-17)</option>
<option
  
  value="TINITA/YAML-1.25_001"
>1.25_001 DEV
  (TINITA on 2018-05-12)</option>
<option
  
  value="TINITA/YAML-1.25"
>1.25
  (TINITA on 2018-05-11)</option>
<option
  
  value="TINITA/YAML-1.24_002"
>1.24_002 DEV
  (TINITA on 2018-05-10)</option>
<option
  
  value="TINITA/YAML-1.24_001"
>1.24_001 DEV
  (TINITA on 2018-05-06)</option>
<option
  
  value="TINITA/YAML-1.24"
>1.24
  (TINITA on 2017-10-30)</option>
<option
  
  value="TINITA/YAML-1.23_003"
>1.23_003 DEV
  (TINITA on 2017-10-29)</option>
<option
  
  value="TINITA/YAML-1.20_002"
>1.20_002 DEV
  (TINITA on 2016-12-07)</option>
<option
  
  value="TINITA/YAML-1.19_001"
>1.19_001 DEV
  (TINITA on 2016-11-27)</option>
<option
  
  value="TINITA/YAML-1.19"
>1.19
  (TINITA on 2016-11-18)</option>
<option
  
  value="TINITA/YAML-1.18_001"
>1.18_001 DEV
  (TINITA on 2016-11-11)</option>
<option
  
  value="TINITA/YAML-1.18"
>1.18
  (TINITA on 2016-07-08)</option>
<option
  
  value="TINITA/YAML-1.17"
>1.17
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_002"
>1.16_002 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_001"
>1.16_001 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="INGY/YAML-1.16"
>1.16
  (INGY on 2016-07-03)</option>
<option
  
  value="INGY/YAML-1.15"
>1.15
  (INGY on 2015-04-18)</option>
<option
  
  value="INGY/YAML-1.14"
>1.14
  (INGY on 2015-01-17)</option>
<option
  
  value="INGY/YAML-1.13"
>1.13
  (INGY on 2014-10-11)</option>
<option
  
  value="INGY/YAML-1.12"
>1.12
  (INGY on 2014-09-22)</option>
<option
  
  value="INGY/YAML-1.11"
>1.11
  (INGY on 2014-08-30)</option>
<option
  
  value="INGY/YAML-1.10"
>1.10
  (INGY on 2014-08-29)</option>
<option
  
  value="INGY/YAML-1.09"
>1.09
  (INGY on 2014-08-19)</option>
<option
  
  value="INGY/YAML-1.08"
>1.08
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.07"
>1.07
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.06"
>1.06
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.05"
>1.05
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.04"
>1.04
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.03"
>1.03
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.02"
>1.02
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.01"
>1.01
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-1.00"
>1.00
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.99"
>0.99
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.98"
>0.98
  (INGY on 2014-07-30)</option>
<option
  
  value="INGY/YAML-0.97"
>0.97
  (INGY on 2014-07-17)</option>
<option
  
  value="INGY/YAML-0.96"
>0.96
  (INGY on 2014-07-14)</option>
<option
  
  value="INGY/YAML-0.95"
>0.95
  (INGY on 2014-06-20)</option>
<option
  
  value="INGY/YAML-0.94"
>0.94
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.93"
>0.93
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.92"
>0.92
  (INGY on 2014-05-29)</option>
<option
  
  value="INGY/YAML-0.91"
>0.91
  (INGY on 2014-05-27)</option>
<option
  
  value="INGY/YAML-0.90"
>0.90
  (INGY on 2014-02-10)</option>
<option
  
  value="INGY/YAML-0.89"
>0.89
  (INGY on 2014-02-08)</option>
<option
  
  value="INGY/YAML-0.88"
>0.88
  (INGY on 2013-12-03)</option>
<option
  
  value="INGY/YAML-0.87"
>0.87
  (INGY on 2013-12-01)</option>
<option
  
  value="INGY/YAML-0.86"
>0.86
  (INGY on 2013-11-26)</option>
<option
  
  value="INGY/YAML-0.85"
>0.85
  (INGY on 2013-11-24)</option>
<option
  
  value="INGY/YAML-0.81"
>0.81
  (INGY on 2012-04-19)</option>
<option
  
  value="INGY/YAML-0.80"
>0.80
  (INGY on 2012-02-10)</option>
<option
  
  value="INGY/YAML-0.79"
>0.79
  (INGY on 2012-02-09)</option>
<option
  
  value="INGY/YAML-0.78"
>0.78
  (INGY on 2012-01-02)</option>
<option
  
  value="INGY/YAML-0.77"
>0.77
  (INGY on 2011-09-29)</option>
<option
  
  value="INGY/YAML-0.76"
>0.76
  (INGY on 2011-09-28)</option>
<option
  
  value="INGY/YAML-0.75"
>0.75
  (INGY on 2011-09-26)</option>
<option
  
  value="INGY/YAML-0.74"
>0.74
  (INGY on 2011-09-25)</option>
<option
  
  value="INGY/YAML-0.73"
>0.73
  (INGY on 2011-04-19)</option>
<option
  
  value="ADAMK/YAML-0.69_02"
>0.69_02 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="ADAMK/YAML-0.69_01"
>0.69_01 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="INGY/YAML-0.68"
>0.68
  (INGY on 2008-12-04)</option>
<option
  
  value="INGY/YAML-0.67"
>0.67
  (INGY on 2008-12-01)</option>
<option
  
  value="INGY/YAML-0.66"
>0.66
  (INGY on 2007-09-27)</option>
<option
  
  value="INGY/YAML-0.65"
>0.65
  (INGY on 2007-06-22)</option>
<option
  
  value="INGY/YAML-0.64"
>0.64
  (INGY on 2007-06-21)</option>
<option
  
  value="INGY/YAML-0.63"
>0.63
  (INGY on 2007-06-20)</option>
<option
  
  value="INGY/YAML-0.62"
>0.62
  (INGY on 2006-07-03)</option>
<option
  
  value="INGY/YAML-0.61"
>0.61
  (INGY on 2006-07-02)</option>
<option
  
  value="INGY/YAML-0.60"
>0.60
  (INGY on 2006-07-01)</option>
<option
  
  value="INGY/YAML-0.58"
>0.58
  (INGY on 2006-02-14)</option>
<option
  
  value="INGY/YAML-0.57"
>0.57
  (INGY on 2006-02-02)</option>
<option
  
  value="INGY/YAML-0.56"
>0.56
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.55"
>0.55
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.54"
>0.54
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.53"
>0.53
  (INGY on 2006-01-19)</option>
<option
  
  value="INGY/YAML-0.52"
>0.52
  (INGY on 2006-01-18)</option>
<option
  
  value="INGY/YAML-0.51"
>0.51
  (INGY on 2006-01-14)</option>
<option
  
  value="INGY/YAML-0.50"
>0.50
  (INGY on 2006-01-10)</option>
<option
  
  value="INGY/YAML-0.49_70"
>0.49_70 DEV
  (INGY on 2005-12-25)</option>
<option
  
  value="KING/YAML-0.39"
>0.39
  (KING on 2005-04-25)</option>
<option
  
  value="INGY/YAML-0.39"
>0.39
  (INGY on 2005-04-12)</option>
<option
  
  value="INGY/YAML-0.38"
>0.38
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.37"
>0.37
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.36"
>0.36
  (INGY on 2005-01-31)</option>
<option
  
  value="INGY/YAML-0.49_01"
>0.49_01 DEV
  (INGY on 2004-01-20)</option>
<option
  
  value="INGY/YAML-0.35"
>0.35
  (INGY on 2002-06-25)</option>
<option
  
  value="INGY/YAML-0.30"
>0.30
  (INGY on 2002-01-15)</option>
<option
  
  value="INGY/YAML-0.26"
>0.26
  (INGY on 2002-01-10)</option>
<option
  
  value="INGY/YAML-0.25"
>0.25
  (INGY on 2001-12-19)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/INGY/YAML-1.31/diff/' + encodeURIComponent(this.value) + '/lib/YAML.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="INGY/YAML-1.31"
>1.31
  (INGY on 2023-12-27)</option>
<option
  
  value="TINITA/YAML-1.30"
>1.30
  (TINITA on 2020-01-27)</option>
<option
  
  value="TINITA/YAML-1.29"
>1.29
  (TINITA on 2019-05-11)</option>
<option
  
  value="TINITA/YAML-1.28"
>1.28
  (TINITA on 2019-04-28)</option>
<option
  
  value="INGY/YAML-1.23_002"
>1.23_002 DEV
  (INGY on 2017-05-14)</option>
<option
  
  value="INGY/YAML-1.23_001"
>1.23_001 DEV
  (INGY on 2017-05-12)</option>
<option
  
  value="INGY/YAML-1.23"
>1.23
  (INGY on 2017-02-19)</option>
<option
  
  value="INGY/YAML-1.22"
>1.22
  (INGY on 2017-02-14)</option>
<option
  
  value="INGY/YAML-1.21"
>1.21
  (INGY on 2016-12-23)</option>
<option
  
  value="INGY/YAML-1.20_001"
>1.20_001 DEV
  (INGY on 2016-12-02)</option>
<option
  
  value="INGY/YAML-1.20"
>1.20
  (INGY on 2016-12-02)</option>
<option
  
  value="MSTROUT/YAML-0.84"
>0.84
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.83"
>0.83
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.82"
>0.82
  (MSTROUT on 2012-07-12)</option>
<option
  
  value="ADAMK/YAML-0.72"
>0.72
  (ADAMK on 2010-09-01)</option>
<option
  
  value="ADAMK/YAML-0.71"
>0.71
  (ADAMK on 2010-01-03)</option>
<option
  
  value="ADAMK/YAML-0.70"
>0.70
  (ADAMK on 2009-08-10)</option>
<optgroup label="BackPAN">'
<option
  
  value="TINITA/YAML-1.28_001"
>1.28_001 DEV
  (TINITA on 2019-05-05)</option>
<option
  
  value="TINITA/YAML-1.27_001"
>1.27_001 DEV
  (TINITA on 2019-04-27)</option>
<option
  
  value="TINITA/YAML-1.27"
>1.27
  (TINITA on 2018-11-03)</option>
<option
  
  value="TINITA/YAML-1.26_001"
>1.26_001 DEV
  (TINITA on 2018-10-18)</option>
<option
  
  value="TINITA/YAML-1.26"
>1.26
  (TINITA on 2018-05-18)</option>
<option
  
  value="TINITA/YAML-1.25_002"
>1.25_002 DEV
  (TINITA on 2018-05-17)</option>
<option
  
  value="TINITA/YAML-1.25_001"
>1.25_001 DEV
  (TINITA on 2018-05-12)</option>
<option
  
  value="TINITA/YAML-1.25"
>1.25
  (TINITA on 2018-05-11)</option>
<option
  
  value="TINITA/YAML-1.24_002"
>1.24_002 DEV
  (TINITA on 2018-05-10)</option>
<option
  
  value="TINITA/YAML-1.24_001"
>1.24_001 DEV
  (TINITA on 2018-05-06)</option>
<option
  
  value="TINITA/YAML-1.24"
>1.24
  (TINITA on 2017-10-30)</option>
<option
  
  value="TINITA/YAML-1.23_003"
>1.23_003 DEV
  (TINITA on 2017-10-29)</option>
<option
  
  value="TINITA/YAML-1.20_002"
>1.20_002 DEV
  (TINITA on 2016-12-07)</option>
<option
  
  value="TINITA/YAML-1.19_001"
>1.19_001 DEV
  (TINITA on 2016-11-27)</option>
<option
  
  value="TINITA/YAML-1.19"
>1.19
  (TINITA on 2016-11-18)</option>
<option
  
  value="TINITA/YAML-1.18_001"
>1.18_001 DEV
  (TINITA on 2016-11-11)</option>
<option
  
  value="TINITA/YAML-1.18"
>1.18
  (TINITA on 2016-07-08)</option>
<option
  
  value="TINITA/YAML-1.17"
>1.17
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_002"
>1.16_002 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_001"
>1.16_001 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="INGY/YAML-1.16"
>1.16
  (INGY on 2016-07-03)</option>
<option
  
  value="INGY/YAML-1.15"
>1.15
  (INGY on 2015-04-18)</option>
<option
  
  value="INGY/YAML-1.14"
>1.14
  (INGY on 2015-01-17)</option>
<option
  
  value="INGY/YAML-1.13"
>1.13
  (INGY on 2014-10-11)</option>
<option
  
  value="INGY/YAML-1.12"
>1.12
  (INGY on 2014-09-22)</option>
<option
  
  value="INGY/YAML-1.11"
>1.11
  (INGY on 2014-08-30)</option>
<option
  
  value="INGY/YAML-1.10"
>1.10
  (INGY on 2014-08-29)</option>
<option
  
  value="INGY/YAML-1.09"
>1.09
  (INGY on 2014-08-19)</option>
<option
  
  value="INGY/YAML-1.08"
>1.08
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.07"
>1.07
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.06"
>1.06
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.05"
>1.05
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.04"
>1.04
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.03"
>1.03
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.02"
>1.02
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.01"
>1.01
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-1.00"
>1.00
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.99"
>0.99
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.98"
>0.98
  (INGY on 2014-07-30)</option>
<option
  
  value="INGY/YAML-0.97"
>0.97
  (INGY on 2014-07-17)</option>
<option
  
  value="INGY/YAML-0.96"
>0.96
  (INGY on 2014-07-14)</option>
<option
  
  value="INGY/YAML-0.95"
>0.95
  (INGY on 2014-06-20)</option>
<option
  
  value="INGY/YAML-0.94"
>0.94
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.93"
>0.93
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.92"
>0.92
  (INGY on 2014-05-29)</option>
<option
  
  value="INGY/YAML-0.91"
>0.91
  (INGY on 2014-05-27)</option>
<option
  
  value="INGY/YAML-0.90"
>0.90
  (INGY on 2014-02-10)</option>
<option
  
  value="INGY/YAML-0.89"
>0.89
  (INGY on 2014-02-08)</option>
<option
  
  value="INGY/YAML-0.88"
>0.88
  (INGY on 2013-12-03)</option>
<option
  
  value="INGY/YAML-0.87"
>0.87
  (INGY on 2013-12-01)</option>
<option
  
  value="INGY/YAML-0.86"
>0.86
  (INGY on 2013-11-26)</option>
<option
  
  value="INGY/YAML-0.85"
>0.85
  (INGY on 2013-11-24)</option>
<option
  
  value="INGY/YAML-0.81"
>0.81
  (INGY on 2012-04-19)</option>
<option
  
  value="INGY/YAML-0.80"
>0.80
  (INGY on 2012-02-10)</option>
<option
  
  value="INGY/YAML-0.79"
>0.79
  (INGY on 2012-02-09)</option>
<option
  
  value="INGY/YAML-0.78"
>0.78
  (INGY on 2012-01-02)</option>
<option
  
  value="INGY/YAML-0.77"
>0.77
  (INGY on 2011-09-29)</option>
<option
  
  value="INGY/YAML-0.76"
>0.76
  (INGY on 2011-09-28)</option>
<option
  
  value="INGY/YAML-0.75"
>0.75
  (INGY on 2011-09-26)</option>
<option
  
  value="INGY/YAML-0.74"
>0.74
  (INGY on 2011-09-25)</option>
<option
  
  value="INGY/YAML-0.73"
>0.73
  (INGY on 2011-04-19)</option>
<option
  
  value="ADAMK/YAML-0.69_02"
>0.69_02 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="ADAMK/YAML-0.69_01"
>0.69_01 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="INGY/YAML-0.68"
>0.68
  (INGY on 2008-12-04)</option>
<option
  
  value="INGY/YAML-0.67"
>0.67
  (INGY on 2008-12-01)</option>
<option
  
  value="INGY/YAML-0.66"
>0.66
  (INGY on 2007-09-27)</option>
<option
  
  value="INGY/YAML-0.65"
>0.65
  (INGY on 2007-06-22)</option>
<option
  
  value="INGY/YAML-0.64"
>0.64
  (INGY on 2007-06-21)</option>
<option
  
  value="INGY/YAML-0.63"
>0.63
  (INGY on 2007-06-20)</option>
<option
  
  value="INGY/YAML-0.62"
>0.62
  (INGY on 2006-07-03)</option>
<option
  
  value="INGY/YAML-0.61"
>0.61
  (INGY on 2006-07-02)</option>
<option
  
  value="INGY/YAML-0.60"
>0.60
  (INGY on 2006-07-01)</option>
<option
  
  value="INGY/YAML-0.58"
>0.58
  (INGY on 2006-02-14)</option>
<option
  
  value="INGY/YAML-0.57"
>0.57
  (INGY on 2006-02-02)</option>
<option
  
  value="INGY/YAML-0.56"
>0.56
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.55"
>0.55
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.54"
>0.54
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.53"
>0.53
  (INGY on 2006-01-19)</option>
<option
  
  value="INGY/YAML-0.52"
>0.52
  (INGY on 2006-01-18)</option>
<option
  
  value="INGY/YAML-0.51"
>0.51
  (INGY on 2006-01-14)</option>
<option
  
  value="INGY/YAML-0.50"
>0.50
  (INGY on 2006-01-10)</option>
<option
  
  value="INGY/YAML-0.49_70"
>0.49_70 DEV
  (INGY on 2005-12-25)</option>
<option
  
  value="KING/YAML-0.39"
>0.39
  (KING on 2005-04-25)</option>
<option
  
  value="INGY/YAML-0.39"
>0.39
  (INGY on 2005-04-12)</option>
<option
  
  value="INGY/YAML-0.38"
>0.38
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.37"
>0.37
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.36"
>0.36
  (INGY on 2005-01-31)</option>
<option
  
  value="INGY/YAML-0.49_01"
>0.49_01 DEV
  (INGY on 2004-01-20)</option>
<option
  
  value="INGY/YAML-0.35"
>0.35
  (INGY on 2002-06-25)</option>
<option
  
  value="INGY/YAML-0.30"
>0.30
  (INGY on 2002-01-15)</option>
<option
  
  value="INGY/YAML-0.26"
>0.26
  (INGY on 2002-01-10)</option>
<option
  
  value="INGY/YAML-0.25"
>0.25
  (INGY on 2001-12-19)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><i>none</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/YAML/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=YAML">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=YAML">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/INGY/YAML-1.31/view/lib/YAML.pm">This version</a>
    </li>
    <li>
      <a href="YAML.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/AZAWAWI"><img src="https://www.gravatar.com/avatar/70ebafdecf974e15bcaba4cbe39efef1?d=identicon&amp;s=20" title="AZAWAWI" alt="AZAWAWI"></a>
<a class="display-all" href="https://metacpan.org/author/ZMUGHAL"><img src="https://www.gravatar.com/avatar/82e7c54d334bfdfd32594d34583d32bc?d=identicon&amp;s=20" title="ZMUGHAL" alt="ZMUGHAL"></a>
<a class="display-all" href="https://metacpan.org/author/WKI"><img src="https://www.gravatar.com/avatar/96e6cbd6079af929f3531d41081b9be1?d=identicon&amp;s=20" title="WKI" alt="WKI"></a>
<a class="display-all" href="https://metacpan.org/author/PWBENNETT"><img src="https://www.gravatar.com/avatar/41a085cce4a7061cf4ee49d02b9bed0e?d=identicon&amp;s=20" title="PWBENNETT" alt="PWBENNETT"></a>
<a class="display-all" href="https://metacpan.org/author/IOANR"><img src="https://www.gravatar.com/avatar/98ca06f241752dc58bf366e44e1f1b84?d=identicon&amp;s=20" title="IOANR" alt="IOANR"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/YAML/plussers">28 PAUSE users</a>
</div>
<div>
    43 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/INGY" class="author-name">Ingy döt Net</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/YAML.pm&#39;" class="">
<option
  selected
  value="INGY/YAML-1.31"
>1.31
  (INGY on 2023-12-27)</option>
<option
  
  value="TINITA/YAML-1.30"
>1.30
  (TINITA on 2020-01-27)</option>
<option
  
  value="TINITA/YAML-1.29"
>1.29
  (TINITA on 2019-05-11)</option>
<option
  
  value="TINITA/YAML-1.28"
>1.28
  (TINITA on 2019-04-28)</option>
<option
  
  value="INGY/YAML-1.23_002"
>1.23_002 DEV
  (INGY on 2017-05-14)</option>
<option
  
  value="INGY/YAML-1.23_001"
>1.23_001 DEV
  (INGY on 2017-05-12)</option>
<option
  
  value="INGY/YAML-1.23"
>1.23
  (INGY on 2017-02-19)</option>
<option
  
  value="INGY/YAML-1.22"
>1.22
  (INGY on 2017-02-14)</option>
<option
  
  value="INGY/YAML-1.21"
>1.21
  (INGY on 2016-12-23)</option>
<option
  
  value="INGY/YAML-1.20_001"
>1.20_001 DEV
  (INGY on 2016-12-02)</option>
<option
  
  value="INGY/YAML-1.20"
>1.20
  (INGY on 2016-12-02)</option>
<option
  
  value="MSTROUT/YAML-0.84"
>0.84
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.83"
>0.83
  (MSTROUT on 2012-07-13)</option>
<option
  
  value="MSTROUT/YAML-0.82"
>0.82
  (MSTROUT on 2012-07-12)</option>
<option
  
  value="ADAMK/YAML-0.72"
>0.72
  (ADAMK on 2010-09-01)</option>
<option
  
  value="ADAMK/YAML-0.71"
>0.71
  (ADAMK on 2010-01-03)</option>
<option
  
  value="ADAMK/YAML-0.70"
>0.70
  (ADAMK on 2009-08-10)</option>
<optgroup label="BackPAN">'
<option
  
  value="TINITA/YAML-1.28_001"
>1.28_001 DEV
  (TINITA on 2019-05-05)</option>
<option
  
  value="TINITA/YAML-1.27_001"
>1.27_001 DEV
  (TINITA on 2019-04-27)</option>
<option
  
  value="TINITA/YAML-1.27"
>1.27
  (TINITA on 2018-11-03)</option>
<option
  
  value="TINITA/YAML-1.26_001"
>1.26_001 DEV
  (TINITA on 2018-10-18)</option>
<option
  
  value="TINITA/YAML-1.26"
>1.26
  (TINITA on 2018-05-18)</option>
<option
  
  value="TINITA/YAML-1.25_002"
>1.25_002 DEV
  (TINITA on 2018-05-17)</option>
<option
  
  value="TINITA/YAML-1.25_001"
>1.25_001 DEV
  (TINITA on 2018-05-12)</option>
<option
  
  value="TINITA/YAML-1.25"
>1.25
  (TINITA on 2018-05-11)</option>
<option
  
  value="TINITA/YAML-1.24_002"
>1.24_002 DEV
  (TINITA on 2018-05-10)</option>
<option
  
  value="TINITA/YAML-1.24_001"
>1.24_001 DEV
  (TINITA on 2018-05-06)</option>
<option
  
  value="TINITA/YAML-1.24"
>1.24
  (TINITA on 2017-10-30)</option>
<option
  
  value="TINITA/YAML-1.23_003"
>1.23_003 DEV
  (TINITA on 2017-10-29)</option>
<option
  
  value="TINITA/YAML-1.20_002"
>1.20_002 DEV
  (TINITA on 2016-12-07)</option>
<option
  
  value="TINITA/YAML-1.19_001"
>1.19_001 DEV
  (TINITA on 2016-11-27)</option>
<option
  
  value="TINITA/YAML-1.19"
>1.19
  (TINITA on 2016-11-18)</option>
<option
  
  value="TINITA/YAML-1.18_001"
>1.18_001 DEV
  (TINITA on 2016-11-11)</option>
<option
  
  value="TINITA/YAML-1.18"
>1.18
  (TINITA on 2016-07-08)</option>
<option
  
  value="TINITA/YAML-1.17"
>1.17
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_002"
>1.16_002 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="TINITA/YAML-1.16_001"
>1.16_001 DEV
  (TINITA on 2016-07-05)</option>
<option
  
  value="INGY/YAML-1.16"
>1.16
  (INGY on 2016-07-03)</option>
<option
  
  value="INGY/YAML-1.15"
>1.15
  (INGY on 2015-04-18)</option>
<option
  
  value="INGY/YAML-1.14"
>1.14
  (INGY on 2015-01-17)</option>
<option
  
  value="INGY/YAML-1.13"
>1.13
  (INGY on 2014-10-11)</option>
<option
  
  value="INGY/YAML-1.12"
>1.12
  (INGY on 2014-09-22)</option>
<option
  
  value="INGY/YAML-1.11"
>1.11
  (INGY on 2014-08-30)</option>
<option
  
  value="INGY/YAML-1.10"
>1.10
  (INGY on 2014-08-29)</option>
<option
  
  value="INGY/YAML-1.09"
>1.09
  (INGY on 2014-08-19)</option>
<option
  
  value="INGY/YAML-1.08"
>1.08
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.07"
>1.07
  (INGY on 2014-08-18)</option>
<option
  
  value="INGY/YAML-1.06"
>1.06
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.05"
>1.05
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.04"
>1.04
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.03"
>1.03
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.02"
>1.02
  (INGY on 2014-08-16)</option>
<option
  
  value="INGY/YAML-1.01"
>1.01
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-1.00"
>1.00
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.99"
>0.99
  (INGY on 2014-08-07)</option>
<option
  
  value="INGY/YAML-0.98"
>0.98
  (INGY on 2014-07-30)</option>
<option
  
  value="INGY/YAML-0.97"
>0.97
  (INGY on 2014-07-17)</option>
<option
  
  value="INGY/YAML-0.96"
>0.96
  (INGY on 2014-07-14)</option>
<option
  
  value="INGY/YAML-0.95"
>0.95
  (INGY on 2014-06-20)</option>
<option
  
  value="INGY/YAML-0.94"
>0.94
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.93"
>0.93
  (INGY on 2014-06-14)</option>
<option
  
  value="INGY/YAML-0.92"
>0.92
  (INGY on 2014-05-29)</option>
<option
  
  value="INGY/YAML-0.91"
>0.91
  (INGY on 2014-05-27)</option>
<option
  
  value="INGY/YAML-0.90"
>0.90
  (INGY on 2014-02-10)</option>
<option
  
  value="INGY/YAML-0.89"
>0.89
  (INGY on 2014-02-08)</option>
<option
  
  value="INGY/YAML-0.88"
>0.88
  (INGY on 2013-12-03)</option>
<option
  
  value="INGY/YAML-0.87"
>0.87
  (INGY on 2013-12-01)</option>
<option
  
  value="INGY/YAML-0.86"
>0.86
  (INGY on 2013-11-26)</option>
<option
  
  value="INGY/YAML-0.85"
>0.85
  (INGY on 2013-11-24)</option>
<option
  
  value="INGY/YAML-0.81"
>0.81
  (INGY on 2012-04-19)</option>
<option
  
  value="INGY/YAML-0.80"
>0.80
  (INGY on 2012-02-10)</option>
<option
  
  value="INGY/YAML-0.79"
>0.79
  (INGY on 2012-02-09)</option>
<option
  
  value="INGY/YAML-0.78"
>0.78
  (INGY on 2012-01-02)</option>
<option
  
  value="INGY/YAML-0.77"
>0.77
  (INGY on 2011-09-29)</option>
<option
  
  value="INGY/YAML-0.76"
>0.76
  (INGY on 2011-09-28)</option>
<option
  
  value="INGY/YAML-0.75"
>0.75
  (INGY on 2011-09-26)</option>
<option
  
  value="INGY/YAML-0.74"
>0.74
  (INGY on 2011-09-25)</option>
<option
  
  value="INGY/YAML-0.73"
>0.73
  (INGY on 2011-04-19)</option>
<option
  
  value="ADAMK/YAML-0.69_02"
>0.69_02 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="ADAMK/YAML-0.69_01"
>0.69_01 DEV
  (ADAMK on 2009-08-10)</option>
<option
  
  value="INGY/YAML-0.68"
>0.68
  (INGY on 2008-12-04)</option>
<option
  
  value="INGY/YAML-0.67"
>0.67
  (INGY on 2008-12-01)</option>
<option
  
  value="INGY/YAML-0.66"
>0.66
  (INGY on 2007-09-27)</option>
<option
  
  value="INGY/YAML-0.65"
>0.65
  (INGY on 2007-06-22)</option>
<option
  
  value="INGY/YAML-0.64"
>0.64
  (INGY on 2007-06-21)</option>
<option
  
  value="INGY/YAML-0.63"
>0.63
  (INGY on 2007-06-20)</option>
<option
  
  value="INGY/YAML-0.62"
>0.62
  (INGY on 2006-07-03)</option>
<option
  
  value="INGY/YAML-0.61"
>0.61
  (INGY on 2006-07-02)</option>
<option
  
  value="INGY/YAML-0.60"
>0.60
  (INGY on 2006-07-01)</option>
<option
  
  value="INGY/YAML-0.58"
>0.58
  (INGY on 2006-02-14)</option>
<option
  
  value="INGY/YAML-0.57"
>0.57
  (INGY on 2006-02-02)</option>
<option
  
  value="INGY/YAML-0.56"
>0.56
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.55"
>0.55
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.54"
>0.54
  (INGY on 2006-01-30)</option>
<option
  
  value="INGY/YAML-0.53"
>0.53
  (INGY on 2006-01-19)</option>
<option
  
  value="INGY/YAML-0.52"
>0.52
  (INGY on 2006-01-18)</option>
<option
  
  value="INGY/YAML-0.51"
>0.51
  (INGY on 2006-01-14)</option>
<option
  
  value="INGY/YAML-0.50"
>0.50
  (INGY on 2006-01-10)</option>
<option
  
  value="INGY/YAML-0.49_70"
>0.49_70 DEV
  (INGY on 2005-12-25)</option>
<option
  
  value="KING/YAML-0.39"
>0.39
  (KING on 2005-04-25)</option>
<option
  
  value="INGY/YAML-0.39"
>0.39
  (INGY on 2005-04-12)</option>
<option
  
  value="INGY/YAML-0.38"
>0.38
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.37"
>0.37
  (INGY on 2005-03-31)</option>
<option
  
  value="INGY/YAML-0.36"
>0.36
  (INGY on 2005-01-31)</option>
<option
  
  value="INGY/YAML-0.49_01"
>0.49_01 DEV
  (INGY on 2004-01-20)</option>
<option
  
  value="INGY/YAML-0.35"
>0.35
  (INGY on 2002-06-25)</option>
<option
  
  value="INGY/YAML-0.30"
>0.30
  (INGY on 2002-01-15)</option>
<option
  
  value="INGY/YAML-0.26"
>0.26
  (INGY on 2002-01-10)</option>
<option
  
  value="INGY/YAML-0.25"
>0.25
  (INGY on 2001-12-19)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/YAML">YAML-1.31</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 627 direct dependents &#10;          • 2019 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="YAML-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="YAML-1.31">
    <input type="hidden" name="author" value="INGY">
    <input type="hidden" name="distribution" value="YAML">
    <button type="submit" class="favorite highlight"><span>71</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="YAML.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>71</span> ++</a>
</div>
   / <span>YAML</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="YAML.html#NAME">NAME</a></li>
  <li><a href="YAML.html#VERSION">VERSION</a></li>
  <li><a href="YAML.html#IMPORTANT-PLEASE-READ-THIS-FIRST">IMPORTANT - PLEASE READ THIS FIRST</a></li>
  <li><a href="YAML.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="YAML.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="YAML.html#WHY-YAML-IS-COOL">WHY YAML IS COOL</a></li>
  <li><a href="YAML.html#YAML-IMPLEMENTATIONS-IN-PERL">YAML IMPLEMENTATIONS IN PERL</a></li>
  <li><a href="YAML.html#FUNCTIONAL-USAGE">FUNCTIONAL USAGE</a>
    <ul>
      <li><a href="YAML.html#Exported-Functions">Exported Functions</a></li>
      <li><a href="YAML.html#Exportable-Functions">Exportable Functions</a></li>
    </ul>
  </li>
  <li><a href="YAML.html#GLOBAL-OPTIONS">GLOBAL OPTIONS</a></li>
  <li><a href="YAML.html#YAML-TERMINOLOGY">YAML TERMINOLOGY</a></li>
  <li><a href="YAML.html#YSH-THE-YAML-SHELL">YSH - THE YAML SHELL</a></li>
  <li><a href="YAML.html#BUGS-&amp;-DEFICIENCIES">BUGS &amp; DEFICIENCIES</a></li>
  <li><a href="YAML.html#RESOURCES">RESOURCES</a></li>
  <li><a href="YAML.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="YAML.html#AUTHOR">AUTHOR</a></li>
  <li><a href="YAML.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>YAML - YAML Ain&#39;t Markup Language&trade;</p>

<h1 id="VERSION">VERSION</h1>

<p>This document describes <a href="https://metacpan.org/pod/distribution/YAML/lib/YAML.pod">YAML</a> version <b>1.31</b>.</p>

<h1 id="IMPORTANT-PLEASE-READ-THIS-FIRST"><a id="IMPORTANT"></a>IMPORTANT - PLEASE READ THIS FIRST</h1>

<p>If you need to use YAML with Perl, it is likely that you will have a look at this module (<code>YAML.pm</code>) first. There are several <a href="https://metacpan.org/search?q=yaml">YAMLmodules</a> in Perl and they all support the simple <code>Load()</code> and <code>Dump()</code> API. Since this one has the obvious name &quot;YAML&quot;, it may seem obvious to pick this one.</p>

<p>As the author of this module, I humbly ask you to choose another. YAML.pm was the very first YAML implementation in the world, released in 2001. It was originally made as a prototype, over 2 years before the YAML 1.0 spec was published. Although it may work for your needs, it has numerous bugs and is barely maintained.</p>

<p>Please consider using these first:</p>

<ul>

<li><p><a href="https://metacpan.org/pod/YAML::PP">YAML::PP</a> - Pure Perl, Full Featured, Well Maintained</p>

</li>
<li><p><a href="https://metacpan.org/pod/YAML::PP::LibYAML">YAML::PP::LibYAML</a> - A <code>libyaml</code> Perl binding like <a href="./YAML::XS.html">YAML::XS</a> but with the YAML::PP API.</p>

</li>
</ul>

<p>The rest of this documentation is left unchanged...</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    use YAML;

    # Load a YAML stream of 3 YAML documents into Perl data structures.
    my ($hashref, $arrayref, $string) = Load(&lt;&lt;&#39;...&#39;);
    ---
    name: ingy       # A Mapping
    age: old
    weight: heavy
    # I should comment that I also like pink, but don&#39;t tell anybody.
    favorite colors:
      - red
      - green
      - blue
    ---
    - Clark Evans    # A Sequence
    - Oren Ben-Kiki
    - Ingy d&ouml;t Net
    --- &gt;            # A Block Scalar
    You probably think YAML stands for &quot;Yet Another Markup Language&quot;. It
    ain&#39;t! YAML is really a data serialization language. But if you want
    to think of it as a markup, that&#39;s OK with me. A lot of people try
    to use XML as a serialization format.

    &quot;YAML&quot; is catchy and fun to say. Try it. &quot;YAML, YAML, YAML!!!&quot;
    ...

    # Dump the Perl data structures back into YAML.
    print Dump($string, $arrayref, $hashref);

    # YAML::Dump is used the same way you&#39;d use Data::Dumper::Dumper
    use Data::Dumper;
    print Dumper($string, $arrayref, $hashref);

    Since version 1.25 YAML.pm supports trailing comments.</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>The YAML.pm module implements a YAML Loader and Dumper based on the YAML 1.0 specification. <a href="http://www.yaml.org/spec/">http://www.yaml.org/spec/</a></p>

<p>YAML is a generic data serialization language that is optimized for human readability. It can be used to express the data structures of most modern programming languages. (Including Perl!!!)</p>

<p>For information on the YAML syntax, please refer to the YAML specification.</p>

<h1 id="WHY-YAML-IS-COOL"><a id="WHY"></a>WHY YAML IS COOL</h1>

<dl>

<dt id="YAML-is-readable-for-people."><a id="YAML"></a><a id="YAML-is-readable-for-people"></a>YAML is readable for people.</dt>
<dd>

<p>It makes clear sense out of complex data structures. You should find that YAML is an exceptional data dumping tool. Structure is shown through indentation, YAML supports recursive data, and hash keys are sorted by default. In addition, YAML supports several styles of scalar formatting for different types of data.</p>

</dd>
<dt id="YAML-is-editable."><a id="YAML1"></a><a id="YAML-is-editable"></a>YAML is editable.</dt>
<dd>

<p>YAML was designed from the ground up to be an excellent syntax for configuration files. Almost all programs need configuration files, so why invent a new syntax for each one? And why subject users to the complexities of XML or native Perl code?</p>

</dd>
<dt id="YAML-is-multilingual."><a id="YAML2"></a><a id="YAML-is-multilingual"></a>YAML is multilingual.</dt>
<dd>

<p>Yes, YAML supports Unicode. But I&#39;m actually referring to programming languages. YAML was designed to meet the serialization needs of Perl, Python, Ruby, Tcl, PHP, Javascript and Java. It was also designed to be interoperable between those languages. That means YAML serializations produced by Perl can be processed by Python.</p>

</dd>
<dt id="YAML-is-taint-safe."><a id="YAML3"></a><a id="YAML-is-taint-safe"></a>YAML is taint safe.</dt>
<dd>

<p>Using modules like Data::Dumper for serialization is fine as long as you can be sure that nobody can tamper with your data files or transmissions. That&#39;s because you need to use Perl&#39;s <code>eval()</code> built-in to deserialize the data. Somebody could add a snippet of Perl to erase your files.</p>

<p>YAML&#39;s parser does not need to eval anything.</p>

</dd>
<dt id="YAML-is-full-featured."><a id="YAML4"></a><a id="YAML-is-full-featured"></a>YAML is full featured.</dt>
<dd>

<p>YAML can accurately serialize all of the common Perl data structures and deserialize them again without losing data relationships. Although it is not 100% perfect (no serializer is or can be perfect), it fares as well as the popular current modules: Data::Dumper, Storable, XML::Dumper and Data::Denter.</p>

<p>YAML.pm also has the ability to handle code (subroutine) references and typeglobs. (Still experimental) These features are not found in Perl&#39;s other serialization modules.</p>

</dd>
<dt id="YAML-is-extensible."><a id="YAML5"></a><a id="YAML-is-extensible"></a>YAML is extensible.</dt>
<dd>

<p>The YAML language has been designed to be flexible enough to solve it&#39;s own problems. The markup itself has 3 basic construct which resemble Perl&#39;s hash, array and scalar. By default, these map to their Perl equivalents. But each YAML node also supports a tagging mechanism (type system) which can cause that node to be interpreted in a completely different manner. That&#39;s how YAML can support object serialization and oddball structures like Perl&#39;s typeglob.</p>

</dd>
</dl>

<h1 id="YAML-IMPLEMENTATIONS-IN-PERL"><a id="YAML6"></a>YAML IMPLEMENTATIONS IN PERL</h1>

<p>This module, YAML.pm, is really just the interface module for YAML modules written in Perl. The basic interface for YAML consists of two functions: <code>Dump</code> and <code>Load</code>. The real work is done by the modules <a href="https://metacpan.org/pod/distribution/YAML/lib/YAML/Dumper.pod">YAML::Dumper</a> and <a href="https://metacpan.org/pod/distribution/YAML/lib/YAML/Loader.pod">YAML::Loader</a>.</p>

<p>Different YAML module distributions can be created by subclassing YAML.pm and YAML::Loader and YAML::Dumper. For example, YAML-Simple consists of YAML::Simple YAML::Dumper::Simple and YAML::Loader::Simple.</p>

<p>Why would there be more than one implementation of YAML? Well, despite YAML&#39;s offering of being a simple data format, YAML is actually very deep and complex. Implementing the entirety of the YAML specification is a daunting task.</p>

<p>For this reason I am currently working on 3 different YAML implementations.</p>

<dl>

<dt id="YAML7">YAML</dt>
<dd>

<p>The main YAML distribution will keeping evolving to support the entire YAML specification in pure Perl. This may not be the fastest or most stable module though. Currently, YAML.pm has lots of known bugs. It is mostly a great tool for dumping Perl data structures to a readable form.</p>

</dd>
<dt id="YAML::Tiny"><a id="YAML8"></a>YAML::Tiny</dt>
<dd>

<p>The point of YAML::Tiny is to strip YAML down to the 90% that people use most and offer that in a small, fast, stable, pure Perl form. YAML::Tiny will simply die when it is asked to do something it can&#39;t.</p>

</dd>
<dt id="YAML::Syck"><a id="YAML9"></a>YAML::Syck</dt>
<dd>

<p><code>libsyck</code> is the C based YAML processing library used by the Ruby programming language (and also Python, PHP and Pugs). YAML::Syck is the Perl binding to <code>libsyck</code>. It should be very fast, but may have problems of its own. It will also require C compilation.</p>

<p>NOTE: Audrey Tang has actually completed this module and it works great and is 10 times faster than YAML.pm.</p>

</dd>
</dl>

<p>In the future, there will likely be even more YAML modules. Remember, people other than Ingy are allowed to write YAML modules!</p>

<h1 id="FUNCTIONAL-USAGE"><a id="FUNCTIONAL"></a>FUNCTIONAL USAGE</h1>

<p>YAML is completely OO under the hood. Still it exports a few useful top level functions so that it is dead simple to use. These functions just do the OO stuff for you. If you want direct access to the OO API see the documentation for YAML::Dumper and YAML::Loader.</p>

<h2 id="Exported-Functions"><a id="Exported"></a>Exported Functions</h2>

<p>The following functions are exported by YAML.pm by default. The reason they are exported is so that YAML works much like Data::Dumper. If you don&#39;t want functions to be imported, just use YAML with an empty import list:</p>

<pre><code>    use YAML ();</code></pre>

<dl>

<dt id="Dump(list-of-Perl-data-structures)"><a id="Dump"></a><a id="Dump-list-of-Perl-data-structures"></a>Dump(list-of-Perl-data-structures)</dt>
<dd>

<p>Turn Perl data into YAML. This function works very much like Data::Dumper::Dumper(). It takes a list of Perl data structures and dumps them into a serialized form. It returns a string containing the YAML stream. The structures can be references or plain scalars.</p>

</dd>
<dt id="Load(string-containing-a-YAML-stream)"><a id="Load"></a><a id="Load-string-containing-a-YAML-stream"></a>Load(string-containing-a-YAML-stream)</dt>
<dd>

<p>Turn YAML into Perl data. This is the opposite of Dump. Just like Storable&#39;s thaw() function or the eval() function in relation to Data::Dumper. It parses a string containing a valid YAML stream into a list of Perl data structures.</p>

</dd>
</dl>

<h2 id="Exportable-Functions"><a id="Exportable"></a>Exportable Functions</h2>

<p>These functions are not exported by default but you can request them in an import list like this:</p>

<pre><code>    use YAML qw&#39;freeze thaw Bless&#39;;</code></pre>

<dl>

<dt id="freeze()-and-thaw()"><a id="freeze"></a><a id="freeze--and-thaw"></a>freeze() and thaw()</dt>
<dd>

<p>Aliases to Dump() and Load() for Storable fans. This will also allow YAML.pm to be plugged directly into modules like POE.pm, that use the freeze/thaw API for internal serialization.</p>

</dd>
<dt id="DumpFile(filepath,-list)"><a id="DumpFile"></a><a id="DumpFile-filepath--list"></a>DumpFile(filepath, list)</dt>
<dd>

<p>Writes the YAML stream to a file instead of just returning a string.</p>

</dd>
<dt id="LoadFile(filepath)"><a id="LoadFile"></a><a id="LoadFile-filepath"></a>LoadFile(filepath)</dt>
<dd>

<p>Reads the YAML stream from a file instead of a string.</p>

</dd>
<dt id="Bless(perl-node,-[yaml-node-|-class-name])"><a id="Bless"></a><a id="Bless-perl-node---yaml-node---class-name"></a>Bless(perl-node, [yaml-node | class-name])</dt>
<dd>

<p>Associate a normal Perl node, with a yaml node. A yaml node is an object tied to the YAML::Node class. The second argument is either a yaml node that you&#39;ve already created or a class (package) name that supports a <code>yaml_dump()</code> function. A <code>yaml_dump()</code> function should take a perl node and return a yaml node. If no second argument is provided, Bless will create a yaml node. This node is not returned, but can be retrieved with the Blessed() function.</p>

<p>Here&#39;s an example of how to use Bless. Say you have a hash containing three keys, but you only want to dump two of them. Furthermore the keys must be dumped in a certain order. Here&#39;s how you do that:</p>

<pre><code>    use YAML qw(Dump Bless);
    $hash = {apple =&gt; &#39;good&#39;, banana =&gt; &#39;bad&#39;, cauliflower =&gt; &#39;ugly&#39;};
    print Dump $hash;
    Bless($hash)-&gt;keys([&#39;banana&#39;, &#39;apple&#39;]);
    print Dump $hash;</code></pre>

<p>produces:</p>

<pre><code>    ---
    apple: good
    banana: bad
    cauliflower: ugly
    ---
    banana: bad
    apple: good</code></pre>

<p>Bless returns the tied part of a yaml-node, so that you can call the YAML::Node methods. This is the same thing that YAML::Node::ynode() returns. So another way to do the above example is:</p>

<pre><code>    use YAML qw(Dump Bless);
    use YAML::Node;
    $hash = {apple =&gt; &#39;good&#39;, banana =&gt; &#39;bad&#39;, cauliflower =&gt; &#39;ugly&#39;};
    print Dump $hash;
    Bless($hash);
    $ynode = ynode(Blessed($hash));
    $ynode-&gt;keys([&#39;banana&#39;, &#39;apple&#39;]);
    print Dump $hash;</code></pre>

<p>Note that Blessing a Perl data structure does not change it anyway. The extra information is stored separately and looked up by the Blessed node&#39;s memory address.</p>

</dd>
<dt id="Blessed(perl-node)"><a id="Blessed"></a><a id="Blessed-perl-node"></a>Blessed(perl-node)</dt>
<dd>

<p>Returns the yaml node that a particular perl node is associated with (see above). Returns undef if the node is not (YAML) Blessed.</p>

</dd>
</dl>

<h1 id="GLOBAL-OPTIONS"><a id="GLOBAL"></a>GLOBAL OPTIONS</h1>

<p>YAML options are set using a group of global variables in the YAML namespace. This is similar to how Data::Dumper works.</p>

<p>For example, to change the indentation width, do something like:</p>

<pre><code>    local $YAML::Indent = 3;</code></pre>

<p>The current options are:</p>

<dl>

<dt id="DumperClass">DumperClass</dt>
<dd>

<p>You can override which module/class YAML uses for Dumping data.</p>

</dd>
<dt id="LoadBlessed-(since-1.25)"><a id="LoadBlessed"></a><a id="LoadBlessed--since-1.25"></a>LoadBlessed (since 1.25)</dt>
<dd>

<p>Default is undef (false)</p>

<p>The default was changed in version 1.30.</p>

<p>When set to true, YAML nodes with special tags will be automatocally blessed into objects:</p>

<pre><code>    - !perl/hash:Foo::Bar
        foo: 42</code></pre>

<p>When loading untrusted YAML, you should disable this option by setting it to <code>0</code>. This will also disable setting typeglobs when loading them.</p>

<p>You can create any kind of object with YAML. The creation itself is not the critical part. If the class has a <code>DESTROY</code> method, it will be called once the object is deleted. An example with File::Temp removing files can be found at <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862373</a></p>

</dd>
<dt id="LoaderClass">LoaderClass</dt>
<dd>

<p>You can override which module/class YAML uses for Loading data.</p>

</dd>
<dt id="Indent">Indent</dt>
<dd>

<p>This is the number of space characters to use for each indentation level when doing a Dump(). The default is 2.</p>

<p>By the way, YAML can use any number of characters for indentation at any level. So if you are editing YAML by hand feel free to do it anyway that looks pleasing to you; just be consistent for a given level.</p>

</dd>
<dt id="SortKeys">SortKeys</dt>
<dd>

<p>Default is 1. (true)</p>

<p>Tells YAML.pm whether or not to sort hash keys when storing a document.</p>

<p>YAML::Node objects can have their own sort order, which is usually what you want. To override the YAML::Node order and sort the keys anyway, set SortKeys to 2.</p>

</dd>
<dt id="Stringify">Stringify</dt>
<dd>

<p>Default is 0. (false)</p>

<p>Objects with string overloading should honor the overloading and dump the stringification of themselves, rather than the actual object&#39;s guts.</p>

</dd>
<dt id="Numify">Numify</dt>
<dd>

<p>Default is 0. (false)</p>

<p>Values that look like numbers (integers, floats) will be numified when loaded.</p>

</dd>
<dt id="UseHeader">UseHeader</dt>
<dd>

<p>Default is 1. (true)</p>

<p>This tells YAML.pm whether to use a separator string for a Dump operation. This only applies to the first document in a stream. Subsequent documents must have a YAML header by definition.</p>

</dd>
<dt id="UseVersion">UseVersion</dt>
<dd>

<p>Default is 0. (false)</p>

<p>Tells YAML.pm whether to include the YAML version on the separator/header.</p>

<pre><code>    --- %YAML:1.0</code></pre>

</dd>
<dt id="AnchorPrefix">AnchorPrefix</dt>
<dd>

<p>Default is &#39;&#39;.</p>

<p>Anchor names are normally numeric. YAML.pm simply starts with &#39;1&#39; and increases by one for each new anchor. This option allows you to specify a string to be prepended to each anchor number.</p>

</dd>
<dt id="UseCode">UseCode</dt>
<dd>

<p>Setting the UseCode option is a shortcut to set both the DumpCode and LoadCode options at once. Setting UseCode to &#39;1&#39; tells YAML.pm to dump Perl code references as Perl (using B::Deparse) and to load them back into memory using eval(). The reason this has to be an option is that using eval() to parse untrusted code is, well, untrustworthy.</p>

</dd>
<dt id="DumpCode">DumpCode</dt>
<dd>

<p>Determines if and how YAML.pm should serialize Perl code references. By default YAML.pm will dump code references as dummy placeholders (much like Data::Dumper). If DumpCode is set to &#39;1&#39; or &#39;deparse&#39;, code references will be dumped as actual Perl code.</p>

</dd>
<dt id="LoadCode">LoadCode</dt>
<dd>

<p>LoadCode is the opposite of DumpCode. It tells YAML if and how to deserialize code references. When set to &#39;1&#39; or &#39;deparse&#39; it will use <code>eval()</code>. Since this is potentially risky, only use this option if you know where your YAML has been.</p>

<p>LoadCode must be enabled also to use the feature of evaluating typeglobs (because with the typeglob feature you would be able to set the variable <code>$YAML::LoadCode</code> from a YAML file).</p>

</dd>
<dt id="Preserve">Preserve</dt>
<dd>

<p>When set to true, this option tells the Loader to load hashes into YAML::Node objects. These are tied hashes. This has the effect of remembering the key order, thus it will be preserved when the hash is dumped again. See <a href="https://metacpan.org/pod/distribution/YAML/lib/YAML/Node.pod">YAML::Node</a> for more information.</p>

</dd>
<dt id="UseBlock">UseBlock</dt>
<dd>

<p>YAML.pm uses heuristics to guess which scalar style is best for a given node. Sometimes you&#39;ll want all multiline scalars to use the &#39;block&#39; style. If so, set this option to 1.</p>

<p>NOTE: YAML&#39;s block style is akin to Perl&#39;s here-document.</p>

</dd>
<dt id="UseFold-(Not-supported-anymore-since-v0.60)"><a id="UseFold"></a><a id="UseFold--Not-supported-anymore-since-v0.60"></a>UseFold (Not supported anymore since v0.60)</dt>
<dd>

<p>If you want to force YAML to use the &#39;folded&#39; style for all multiline scalars, then set $UseFold to 1.</p>

<p>NOTE: YAML&#39;s folded style is akin to the way HTML folds text, except smarter.</p>

</dd>
<dt id="UseAliases">UseAliases</dt>
<dd>

<p>YAML has an alias mechanism such that any given structure in memory gets serialized once. Any other references to that structure are serialized only as alias markers. This is how YAML can serialize duplicate and recursive structures.</p>

<p>Sometimes, when you KNOW that your data is nonrecursive in nature, you may want to serialize such that every node is expressed in full. (ie as a copy of the original). Setting $YAML::UseAliases to 0 will allow you to do this. This also may result in faster processing because the lookup overhead is by bypassed.</p>

<p>THIS OPTION CAN BE DANGEROUS. <b>If</b> your data is recursive, this option <b>will</b> cause Dump() to run in an endless loop, chewing up your computers memory. You have been warned.</p>

</dd>
<dt id="CompressSeries">CompressSeries</dt>
<dd>

<p>Default is 1.</p>

<p>Compresses the formatting of arrays of hashes:</p>

<pre><code>    -
      foo: bar
    -
      bar: foo</code></pre>

<p>becomes:</p>

<pre><code>    - foo: bar
    - bar: foo</code></pre>

<p>Since this output is usually more desirable, this option is turned on by default.</p>

</dd>
<dt id="QuoteNumericStrings">QuoteNumericStrings</dt>
<dd>

<p>Default is 0. (false)</p>

<p>Adds detection mechanisms to encode strings that resemble numbers with mandatory quoting.</p>

<p>This ensures leading that things like leading/trailing zeros and other formatting are preserved.</p>

</dd>
</dl>

<h1 id="YAML-TERMINOLOGY"><a id="YAML10"></a>YAML TERMINOLOGY</h1>

<p>YAML is a full featured data serialization language, and thus has its own terminology.</p>

<p>It is important to remember that although YAML is heavily influenced by Perl and Python, it is a language in its own right, not merely just a representation of Perl structures.</p>

<p>YAML has three constructs that are conspicuously similar to Perl&#39;s hash, array, and scalar. They are called mapping, sequence, and string respectively. By default, they do what you would expect. But each instance may have an explicit or implicit tag (type) that makes it behave differently. In this manner, YAML can be extended to represent Perl&#39;s Glob or Python&#39;s tuple, or Ruby&#39;s Bigint.</p>

<dl>

<dt id="stream">stream</dt>
<dd>

<pre><code>    A YAML stream is the full sequence of Unicode characters that a YAML
    parser would read or a YAML emitter would write. A stream may contain
    one or more YAML documents separated by YAML headers.

    ---
    a: mapping
    foo: bar
    ---
    - a
    - sequence</code></pre>

</dd>
<dt id="document">document</dt>
<dd>

<p>A YAML document is an independent data structure representation within a stream. It is a top level node. Each document in a YAML stream must begin with a YAML header line. Actually the header is optional on the first document.</p>

<pre><code>    ---
    This: top level mapping
    is:
        - a
        - YAML
        - document</code></pre>

</dd>
<dt id="header">header</dt>
<dd>

<p>A YAML header is a line that begins a YAML document. It consists of three dashes, possibly followed by more info. Another purpose of the header line is that it serves as a place to put top level tag and anchor information.</p>

<pre><code>    --- !recursive-sequence &amp;001
    - * 001
    - * 001</code></pre>

</dd>
<dt id="node">node</dt>
<dd>

<p>A YAML node is the representation of a particular data structure. Nodes may contain other nodes. (In Perl terms, nodes are like scalars. Strings, arrayrefs and hashrefs. But this refers to the serialized format, not the in- memory structure.)</p>

</dd>
<dt id="tag">tag</dt>
<dd>

<p>This is similar to a type. It indicates how a particular YAML node serialization should be transferred into or out of memory. For instance a Foo::Bar object would use the tag &#39;perl/Foo::Bar&#39;:</p>

<pre><code>    - !perl/Foo::Bar
        foo: 42
        bar: stool</code></pre>

</dd>
<dt id="collection">collection</dt>
<dd>

<p>A collection is the generic term for a YAML data grouping. YAML has two types of collections: mappings and sequences. (Similar to hashes and arrays)</p>

</dd>
<dt id="mapping">mapping</dt>
<dd>

<p>A mapping is a YAML collection defined by unordered key/value pairs with unique keys. By default YAML mappings are loaded into Perl hashes.</p>

<pre><code>    a mapping:
        foo: bar
        two: times two is 4</code></pre>

</dd>
<dt id="sequence">sequence</dt>
<dd>

<p>A sequence is a YAML collection defined by an ordered list of elements. By default YAML sequences are loaded into Perl arrays.</p>

<pre><code>    a sequence:
        - one bourbon
        - one scotch
        - one beer</code></pre>

</dd>
<dt id="scalar">scalar</dt>
<dd>

<p>A scalar is a YAML node that is a single value. By default YAML scalars are loaded into Perl scalars.</p>

<pre><code>    a scalar key: a scalar value</code></pre>

<p>YAML has many styles for representing scalars. This is important because varying data will have varying formatting requirements to retain the optimum human readability.</p>

</dd>
<dt id="plain-scalar"><a id="plain"></a>plain scalar</dt>
<dd>

<p>A plain scalar is unquoted. All plain scalars are automatic candidates for &quot;implicit tagging&quot;. This means that their tag may be determined automatically by examination. The typical uses for this are plain alpha strings, integers, real numbers, dates, times and currency.</p>

<pre><code>    - a plain string
    - -42
    - 3.1415
    - 12:34
    - 123 this is an error</code></pre>

</dd>
<dt id="single-quoted-scalar"><a id="single"></a>single quoted scalar</dt>
<dd>

<p>This is similar to Perl&#39;s use of single quotes. It means no escaping except for single quotes which are escaped by using two adjacent single quotes.</p>

<pre><code>    - &#39;When I say &#39;&#39;\n&#39;&#39; I mean &quot;backslash en&quot;&#39;</code></pre>

</dd>
<dt id="double-quoted-scalar"><a id="double"></a>double quoted scalar</dt>
<dd>

<p>This is similar to Perl&#39;s use of double quotes. Character escaping can be used.</p>

<pre><code>    - &quot;This scalar\nhas two lines, and a bell --&gt;\a&quot;</code></pre>

</dd>
<dt id="folded-scalar"><a id="folded"></a>folded scalar</dt>
<dd>

<p>This is a multiline scalar which begins on the next line. It is indicated by a single right angle bracket. It is unescaped like the single quoted scalar. Line folding is also performed.</p>

<pre><code>    - &gt;
     This is a multiline scalar which begins on
     the next line. It is indicated by a single
     carat. It is unescaped like the single
     quoted scalar. Line folding is also
     performed.</code></pre>

</dd>
<dt id="block-scalar"><a id="block"></a>block scalar</dt>
<dd>

<p>This final multiline form is akin to Perl&#39;s here-document except that (as in all YAML data) scope is indicated by indentation. Therefore, no ending marker is required. The data is verbatim. No line folding.</p>

<pre><code>    - |
        QTY  DESC          PRICE  TOTAL
        ---  ----          -----  -----
          1  Foo Fighters  $19.95 $19.95
          2  Bar Belles    $29.95 $59.90</code></pre>

</dd>
<dt id="parser">parser</dt>
<dd>

<p>A YAML processor has four stages: parse, load, dump, emit.</p>

<p>A parser parses a YAML stream. YAML.pm&#39;s Load() function contains a parser.</p>

</dd>
<dt id="loader">loader</dt>
<dd>

<p>The other half of the Load() function is a loader. This takes the information from the parser and loads it into a Perl data structure.</p>

</dd>
<dt id="dumper">dumper</dt>
<dd>

<p>The Dump() function consists of a dumper and an emitter. The dumper walks through each Perl data structure and gives info to the emitter.</p>

</dd>
<dt id="emitter">emitter</dt>
<dd>

<p>The emitter takes info from the dumper and turns it into a YAML stream.</p>

<p>NOTE: In YAML.pm the parser<i>loader and the dumper</i>emitter code are currently very closely tied together. In the future they may be broken into separate stages.</p>

</dd>
</dl>

<p>For more information please refer to the immensely helpful YAML specification available at <a href="http://www.yaml.org/spec/">http://www.yaml.org/spec/</a>.</p>

<h1 id="YSH-THE-YAML-SHELL"><a id="YSH"></a>YSH - THE YAML SHELL</h1>

<p>The <a href="https://metacpan.org/pod/YAML::Shell">YAML::Shell</a> distribution provides script called &#39;ysh&#39;, the YAML shell. ysh provides a simple, interactive way to play with YAML. If you type in Perl code, it displays the result in YAML. If you type in YAML it turns it into Perl code.</p>

<p>To run ysh, (assuming you installed it along with YAML.pm) simply type:</p>

<pre><code>    ysh [options]</code></pre>

<p>Please read the <code>ysh</code> documentation for the full details. There are lots of options.</p>

<h1 id="BUGS-&amp;-DEFICIENCIES"><a id="BUGS"></a><a id="BUGS---DEFICIENCIES"></a>BUGS &amp; DEFICIENCIES</h1>

<p>If you find a bug in YAML, please try to recreate it in the YAML Shell with logging turned on (&#39;ysh -L&#39;). When you have successfully reproduced the bug, please mail the LOG file to the author (ingy@cpan.org).</p>

<p>WARNING: This is still <b>ALPHA</b> code. Well, most of this code has been around for years...</p>

<p>BIGGER WARNING: YAML.pm has been slow in the making, but I am committed to having top notch YAML tools in the Perl world. The YAML team is close to finalizing the YAML 1.1 spec. This version of YAML.pm is based off of a very old pre 1.0 spec. In actuality there isn&#39;t a ton of difference, and this YAML.pm is still fairly useful. Things will get much better in the future.</p>

<h1 id="RESOURCES">RESOURCES</h1>

<p><a href="http://www.yaml.org">http://www.yaml.org</a> is the official YAML website.</p>

<p><a href="http://www.yaml.org/spec/">http://www.yaml.org/spec/</a> is the YAML 1.2 specification.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<ul>

<li><p><a href="https://metacpan.org/pod/YAML::PP">YAML::PP</a> - This is almost certainly the YAML module you are looking for. It is full-featured and well maintained.</p>

</li>
<li><p><a href="https://metacpan.org/pod/YAML::PP::LibYAML">YAML::PP::LibYAML</a> - Same overall API as YAML::PP but uses the libyaml shared library for speed.</p>

</li>
</ul>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Ingy d&ouml;t Net &lt;ingy@cpan.org&gt;</p>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>Copyright 2001-2023. Ingy d&ouml;t Net.</p>

<p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>See <a href="http://www.perl.com/perl/misc/Artistic.html">http://www.perl.com/perl/misc/Artistic.html</a></p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install YAML, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm YAML</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install YAML</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="YAML.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
